<?php /* Smarty version 2.6.20, created on 2017-10-20 20:22:46
         compiled from order_ship.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'order_ship.htm', 21, false),array('modifier', 'getdistrictname', 'order_ship.htm', 59, false),)), $this); ?>
<link href="admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/script/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/script/jquery.ui.js"></script>
<div class="container">
<div class="oflow" style="height:360px">
<form name="form1" id="form1" action="module.php?m=product&s=order_opear.php" method="post">
<input name="id" type="hidden" id="id" value="<?php echo $this->_tpl_vars['de']['order_id']; ?>
">
<table class="table">
    <thead>
        <tr>
            <th class="partition" colspan="99">订单详情</th>
        </tr>
    </thead>
    <tbody>
    <tr>
        <td width="60">订单编号</td>
        <td colspan="3"><?php echo $this->_tpl_vars['de']['order_id']; ?>
 <b class="org"><?php echo $this->_tpl_vars['de']['order_ship_status']; ?>
</b></td>
    </tr>
    <tr>
        <td>下单时间</td>
        <td colspan="3"><?php echo ((is_array($_tmp=$this->_tpl_vars['de']['create_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d&nbsp;%H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d&nbsp;%H:%M:%S")); ?>
</td>
    </tr>
    <tr>
        <td>配送方式：</td>
        <td width="200"><?php echo $this->_tpl_vars['de']['shipping_name']; ?>
</td>
		<td width="60">配送费用:</td>
        <td><?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo $this->_tpl_vars['de']['freight']; ?>
</td>
    </tr>
    
    <!--<?php if ($this->_tpl_vars['de']['status'] == 2 && $this->_tpl_vars['de']['pay_status'] == 2): ?>-->
    <!--<?php else: ?>-->
    <!--<?php endif; ?>-->
    <tr>
        <td>物流单号</td>
        <td colspan="3"><input type="text" name="shipping_no" class="w350" value="" /></td>
    </tr>
    <tr>
        <td>快递公司名称</td>
        <td colspan="3"><input type="text" name="shipping_company" class="w350" value="" /></td>
    </tr>
    <tr>
        <td>收货人</td>
        <td colspan="3"><input type="text" name="ship_name" class="w350" value="<?php echo $this->_tpl_vars['de']['ship_name']; ?>
" /></td>
    </tr>
    <tr>
        <td>联系电话</td>
        <td colspan="3">
        <input type="text" name="ship_tel" class="w350" value="<?php echo $this->_tpl_vars['de']['ship_tel']; ?>
" />
        </td>
    </tr>
    <tr>
        <td>手机</td>
        <td colspan="3">
        <input type="text" name="ship_mobile" class="w350" value="<?php echo $this->_tpl_vars['de']['ship_mobile']; ?>
" />
        </td>
    </tr>
    <tr>
        <td>收货地址</td>
        <td colspan="3"><input type="text" name="ship_addr" class="w350" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['de']['provinceid'])) ? $this->_run_mod_handler('getdistrictname', true, $_tmp) : getdistrictname($_tmp)); ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['de']['cityid'])) ? $this->_run_mod_handler('getdistrictname', true, $_tmp) : getdistrictname($_tmp)); ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['de']['areaid'])) ? $this->_run_mod_handler('getdistrictname', true, $_tmp) : getdistrictname($_tmp)); ?>
<?php echo $this->_tpl_vars['de']['ship_addr']; ?>
" /></td>
    </tr>

    <!--<tr>-->
        <!--<td>物流单号</td>-->
        <!--<td colspan="3"><?php echo $this->_tpl_vars['de']['shipping_no']; ?>
</td>-->
    <!--</tr>-->
    <!--<tr>-->
        <!--<td>快递公司</td>-->
        <!--<td colspan="3"><?php echo $this->_tpl_vars['de']['shipping_company']; ?>
</td>-->
    <!--</tr>-->
    <!--<tr>-->
        <!--<td>收货人</td>-->
        <!--<td colspan="3"><?php echo $this->_tpl_vars['de']['ship_name']; ?>
</td>-->
    <!--</tr>-->
    <!--<tr>-->
        <!--<td>联系电话</td>-->
        <!--<td colspan="3"><?php echo $this->_tpl_vars['de']['ship_mobile']; ?>
 <?php echo $this->_tpl_vars['de']['ship_tel']; ?>
</td>-->
    <!--</tr>-->
    <!--<tr>-->
        <!--<td>收货地址</td>-->
        <!--<td colspan="3"><?php echo ((is_array($_tmp=$this->_tpl_vars['de']['provinceid'])) ? $this->_run_mod_handler('getdistrictname', true, $_tmp) : getdistrictname($_tmp)); ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['de']['cityid'])) ? $this->_run_mod_handler('getdistrictname', true, $_tmp) : getdistrictname($_tmp)); ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['de']['areaid'])) ? $this->_run_mod_handler('getdistrictname', true, $_tmp) : getdistrictname($_tmp)); ?>
<?php echo $this->_tpl_vars['de']['ship_addr']; ?>
</td>-->
    <!--</tr>-->

    </tbody>
</table>

    <div style="height: 30px;"></div>

<div class="dialog_button">
<?php if ($this->_tpl_vars['de']['status'] == 2 || $this->_tpl_vars['de']['status'] == 1): ?>
    <input id="save" type="button" value="发货">
    <input name="act" type="hidden" id="action" value="ship"> 
<?php else: ?>
    <input id="close" type="button" value="关闭">
<?php endif; ?>
</div>
</form>
<div id="error"></div> 
<script>
function $$(id) {
	return !id ? null : document.getElementById(id);
}
function ajaxpost(formid) {
	var ajaxframeid = 'ajaxframe';
	var ajaxframe = $$(ajaxframeid);
	if(!ajaxframe){
		var div = document.createElement('div');
		div.style.display = 'none';
		div.innerHTML = '<iframe name="' + ajaxframeid + '" id="' + ajaxframeid + '" loading="1"></iframe>';
		ajaxframe = $$(ajaxframeid);
		$$('append_parent').appendChild(div);
	}
	$$(formid).target = ajaxframeid;
	$$(formid).submit();
//	window.parent.main.document.location.reload();
	DialogManager.close("order");
}
$("#save").click(function () {
	ajaxpost("form1");
	return false;
});
$("#close").click(function () {
	window.parent.main.document.location.reload();
	DialogManager.close("order");
});
</script>
</form>
</div>
</div>